package com.education.welco.feign;

import com.education.common.pojo.CatalogResultVO;
import com.education.common.pojo.OResources;
import com.education.common.pojo.SQuestionsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;

@FeignClient("wisdom-service")
public interface wisdomResFeign {

    //添加最后一级课程  調用遠程添加时 等级字段填写 prentId 父级id    等级设置为3
    @RequestMapping(value = "/web/catalog/addOther", method = RequestMethod.POST)
    public void addOther(@RequestBody CatalogResultVO resultVO);

    //添加最后一级课程  調用遠程添加时 等级字段填写 prentId 父级id    等级设置为3
    @RequestMapping(value = "/manage/selectByName", method = RequestMethod.GET)
    String selectByMenuName(@RequestParam("id") Integer id);

    @RequestMapping(value = "/web/catalog/insUserBuy",method = RequestMethod.GET)
    void insUserBuy(@RequestParam("userId") Integer userId,@RequestParam("tId") Integer tId);

}
